@charset "utf-8";

$--top-header-height: 60px; // 顶部高度
$--left-side-width: 220px; // 左侧菜单栏宽度
$--left-side-scroll-width: 240px; // 左侧菜单栏宽度 + 20

body {
  background: #1d458d;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.reset-layout {

  .layui-header {
    height: $--top-header-height;
    background-color: rgba(0, 0, 0, .3);

    .layui-logo {
      width: 200px;
      text-align: left;

      img {
        margin-left: 50px;
      }
    }

    .layui-nav.layui-layout-left {
      left: 200px;
    }

    .layui-nav.layui-layout-right {
      > .layui-nav-item {
        margin-left: 10px;
        a {
          padding: 0 10px;
        }
        &.user-item {
          a {
            padding-right: 20px;
          }
        }
      }
      .layui-badge {
        position: relative;
        margin: 0;
        padding: 0 3px;
        height: 16px;
      }
    }
  }

  .layui-side {
    width: $--left-side-width;
    top: $--top-header-height;

    &.layui-bg-black {
      background-color: rgba(0, 0, 0, .5) !important;
    }

    .layui-side-scroll {
      width: $--left-side-scroll-width;
    }

    .layui-nav.layui-nav-tree {
      width: $--left-side-width;
      background: none;

      .layui-nav-bar {
        width: 5px;
        background-color: #205b9e;
        z-index: 1;
      }

      .layui-nav-item {
        position: relative;
        z-index: 1;

        &.layui-nav-itemed > a {
          background-color: rgba(32, 91, 158, .1);
        }

        .layui-nav-child {
          background-color: transparent;
          border-bottom: rgba(255, 255, 255, .2) solid 1px;
          padding: 10px 0;

          .layui-this {
            // background-color: transparent;

            > a {
              color: #fff;
            }
          }

          a {
            background: none !important;
            color: rgba(255, 255, 255, .7);
            line-height: 40px;
            text-indent: 1.5em;
            height: 40px;

            &.layui-nav-item__subtitle {
              text-indent: 0.1em;
            }
          }
        }
      }
    }
  }

  .layui-body {
    top: $--top-header-height;
    left: $--left-side-width;
    background-color: #fff;
    bottom: 0;
    z-index: 10;

    .content-iframe {
      display: block;
      height: 100%;
      width: 100%;
    }
  }

  .layui-footer {
    left: $--left-side-width;
    z-index: 999999;
  }

  .layui-nav .layui-this:after,
  .layui-nav-bar,
  .layui-nav-tree .layui-nav-itemed:after {
    background-color: #205b9e;
  }

  .layui-nav-tree .layui-nav-child dd.layui-this,
  .layui-nav-tree .layui-nav-child dd.layui-this a,
  .layui-nav-tree .layui-this,
  .layui-nav-tree .layui-this > a,
  .layui-nav-tree .layui-this > a:hover {
    background-color: #205b9e;
  }
}

.open_shrink {
  position: absolute;
  top: 50%;
  margin-top: -40px;
  left: 0;
  border-color: transparent transparent transparent #052040;
  border-style: solid none solid solid;
  border-width: 20px 0 20px 20px;
  height: 40px;
  width: 0;
  cursor: pointer;

  span {
    position: absolute;
    top: 50%;
    left: -13px;
    margin-top: -4px;
    border-color: transparent transparent transparent #fff;
    border-style: solid none solid solid;
    border-width: 4px 0 4px 6px;
    height: 0;
    width: 0;
    opacity: .7;
  }

  &.open span {
    transform: rotate(-180deg);
  }
  &:hover span {
    opacity: 1;
  }
}

